//         // 成语关卡
//         // 成语关卡-看图
//         // 1-接龙
//         // 2-填字 一个成语
//         // 3-看图
//         // 成语解释
//         // idiom_list: "config/json/chengyu/idiom_list",
//         // 红包数据
//         /** 成语_个体（角色、植物、府邸、宠物） */
//         /** 成语_签到 */
//         /** 成语_任务 */
//         /** 成语_条件 */
//         /** 成语_植物闪光 */
//         /** 成语_常规配置 */
//         /** 广告营销位 */
// /** 游戏数据 */
// /** 调试 */

import { _decorator, v3, } from 'cc';
import XXL_Grid from "../Game/XXL_Grid";
import { ChengYu_GameStorage } from "./ChengYu_GameStorage";
export namespace HallResConstant {
    export const CONFIG_PATH = {
        // level: "config/json/chengyu/level",
        pic_level: "config/json/chengyu/pic_level",
        main_questions: "config/json/chengyu/main_questions",
        judge_questions: "config/json/chengyu/judge_questions",
        pic_questions: "config/json/chengyu/pic_questions",
        idiom_info: "config/json/chengyu/idiom_info",
        money: "config/json/chengyu/money",
        entity: "config/json/chengyu/entity",
        signIn: "config/json/chengyu/sign_in",
        task: "config/json/chengyu/task",
        condition: "config/json/chengyu/condition",
        plantFlash: "config/json/chengyu/plantFlash",
        normal: "config/json/chengyu/normal",
        adMp: "config/json/chengyu/AD_info",
    };
}
// const ccmath = (as any).math;
// export const randomRangeInt = ath.randomRangeInt;
// export const randomRange = ath.randomRange;
// window["ChengYu_GameData"] = ChengYu_GameData;

export class ChengYu_GameData {
    static SCENE_NAME = {
        start: "StartScene",
        hotUpdate: "HotUpdateScene",
        loading: "LoadingScene",
        login: "LoginScene",
        main: "ChengYu_Main_Scene",
        game: "ChengYu_Game_Scene",
        xxlGame: "XXL_MainScene",
    };
    static add_tip_number: number = 10;
    //    /** 地形格子 */
    static arrGrids: XXL_Grid[][] = [];
    //    /** 所有可以消除的队列 */
    static AllClearList: any = [];
    //    /** 当前点击 */
    static CurrentSelect: any = {
        x: -1,
        y: -1,
        card: null,
    };
    //    /** 当前消失卡牌数量 */
    static CurrentDestroyNumber: number = 0;
    //    /** 正在使用魔法棒状态 */
    static Skill_1_Select: boolean = false;
    //    /**  */
    static Array_target: number[] = [];
    //    /**  */
    static Array_current: number[] = [];
    //    /**  */
    static Array_already: boolean[] = [];
    //    /** 得分 */
    static Score: number = 0;
    //    /** 步数 */
    static Steps: number = 100;
    //    /** 技能1数量 */
    static skill_1_number: number = 20;
    //    /** 技能2数量 */
    static skill_2_number: number = 10;
    //    /** 地图index */
    static CurrentMapIndex: number = 0;
    //    /** 地图index */
    static CurrentMapData = [];
    //    /** 游戏中数据 */
    static GameData: any = {};
    static CurLevel = 1// 0;
    static AddAnswerCount = 1// 0;
    static AddAnswerEventCount = 2// 0;
    //    // 24点调关卡
    static Get_CurrentLevelIndex() {
        // return 2
        return ChengYu_GameStorage.data.current_level;
    }
    static InitData() {

        ChengYu_GameData.GameData = {};
        ChengYu_GameData.GameData.LevelData = {};
        ChengYu_GameData.GameData.IsGameEnd = false;

        // 本关是否出现格子红包
        ChengYu_GameData.GameData.IsGridHongBaoState = false;
        // 格子红包是否已经触发
        ChengYu_GameData.GameData.IsGridHongBaoGet = false;
        // 格子红包位置
        ChengYu_GameData.GameData.GridHongBaoPos = v3(0, 0, 0);

        // 红包事件是否已经触发
        ChengYu_GameData.GameData.IsHongBao1Get = false;

        ChengYu_GameData.GameData.IsStrengthEventState = false;
        ChengYu_GameData.GameData.IsStrengthEventGet = false;

        ChengYu_GameData.GameData.IsAutoAnswerEventState = false;
        ChengYu_GameData.GameData.IsAutoAnswerEventGet = false;

        ChengYu_GameData.GameData.GamePlayTime = 0;
    }
}